// preload.js
const { contextBridge, ipcRenderer } = require('electron');

contextBridge.exposeInMainWorld('electronAPI', {
  startRecording: () => {
    ipcRenderer.send('startRecording');
  },
  stopRecording: () => {
    ipcRenderer.send('stopRecording');
  }
});